<?php 
/*
$india='91';$malaysia='60';$china='86';$japan='81';$southAfrica='27';
$uk='44';$singapore='65';$america='1';
$Afghanistan='93';$Albania='355';$NetherlandsAntilles='599';$Algeria='213';
$AmericanSamoa='1684';$Andorra='376';$Angola='244';$Anguilla='1264';$Antarctica='672';
$AntiguaBarbuda='1268';$Argentina='54';$Armenia='374';$Aruba='297';$Australia='61';
$Austria='43';$Azerbaijan='994';$Bahamas='1242';$Bahrain='973';$Bangladesh='880';
$Barbados='1246';$Belarus='375';$Belgium='32';$Belize='501';$Benin='229';$Bermuda='1441';
$Bhutan='975';$Bolivia='591';$BosniaHerzegovina='387';$Botswana='267';$Brazil='55';
$BruneiDarussalam='673';$Bulgaria='359';$BurkinaFaso='226';$Burundi='257';$Cambodia='855';
$Cameroon='237';$Canada='1';$CapeVerde='238';$CaymanIslands='1345';$CentralAfricanRepublic='236';
$Chad='235';$Chile='56';$Colombia='57';$Comoros='269';$Congo='242';$CongotheDemocraticRepublic='243';
$CookIslands='682';$CostaRica='506';$CôtedIvoire='225';$Croatia='385';$Cuba='53';
$Cyprus='357';$CzechRepublic='420';$Denmark='45';$Djibouti='253';$Dominica ='1767';
$DominicanRepublic ='1809';$Ecuador='593';$Egypt='20';$ElSalvador ='503';
$EquatorialGuinea='240';$Eritrea ='291';$Estonia='372';$Ethiopia='251';
$FalklandIslandsMalvinas='500';$FaroeIslands='298';$Fiji='679';$Finland='358';$France ='33';
$FrenchGuiana='594';$FrenchPolynesia='689';$Gabon ='241';$Gambia='220';$Georgia ='995';
$Germany='49';$Ghana='233';$Gibraltar ='350';$Greece='30';$Greenland='299';$Grenada='1473';
$Guadeloupe='590';$Guam ='1671';$Guatemala ='502';$Guinea='224';$GuineaBissau='245';
$Guyana='592';$Haiti='509';$HolySeeVaticanCityState='39';$Honduras='504';$HongKong ='852';
$Hungary='36';$Iceland='354';$Indonesia='62';$iNum='883';$IranIslamicRepublicof ='98';
$Iraq ='964';$Ireland='353';$Israel ='972';$Italy='39';$Jamaica='1876';$Jordan='962';
$Kazakhstan='7';$Kenya ='254';$Kiribati='686';$KoreaDemocraticPeoplesRepublicof ='850';
$KoreaRepublicof='82';$Kuwait='965';$Kyrgyzstan='996';$LaoPeoplesDemocraticRepublic='856';
$Lebanon='961';$Lesotho='266';$Liberia='231';$LibyanArabJamahiriya='218';$Liechtenstein='423';
$Lithuania='370';$Luxembourg='352';$Macao='853';$MacedoniaTheFormerYugoslavRepublicOf='389';
$Madagascar='261';$Malawi='265';$Maldives='960';$Mali='223';$Malta='356';$MarshallIslands='692';
$Martinique='596';$Mauritania='222';$Mauritius='230';$Mayotte='262';$Mexico='52';$MicronesiaFederatedStatesof='691';
$MoldovaRepublicof='373';$Monaco='377';$Mongolia='976';$Montenegro='382';$Montserrat='1664';
$Morocco='212';$Mozambique='258';$Myanmar='95';$Namibia='264';$Nauru='674';$Nepal='977';
$Netherlands='31';$NewCaledonia='687';$NewZealand='64';$Nicaragua='505';$Niger='227';
$Nigeria='234';$Niue='683';$NorthernMarianaIslands='1670';$Norway='47';$Oman='968';
$Pakistan='92';$Palau='680';$PalestinianTerritoryOccupied='970';$Panama='507';$PapuaGuinea='675';
$Paraguay='595';$Peru='51';$Philippines='63';$Poland='48';$Portugal='351';$PuertoRico='1';
$Qatar='974';$Reunion='262';$Romania='40';$RussianFederation='7';$Rwanda='250';
$SaintHelena='290';$SaintLucia='1758';$SaintPierreMiquelon='508';$SaintVincenttheGrenadines='1784';
$Samoa='685';$SanMarino='378';$SaoTomePrincipe='239';$SaudiArabia='966';$Senegal='221';
$Serbia='381';$Seychelles='248';$SierraLeone='232';$Slovakia='421';$Slovenia='386';
$SolomonIslands='677';$Somalia='252';$SouthSudan='211';$Spain='34';$SriLanka='94';
$Sudan='249';$Suriname='597';$Swaziland='268';$Sweden='46';$Switzerland='41';$SyrianArabRepublic='963';
$Taiwan='886';$Tajikistan='992';$TanzaniaUnitedRepublicof='255';$Thailand='66';
$TimorLeste='670';$Togo='228';$Tokelau='690';$Tonga='676';$TrinidadTobago='1868';
$Tunisia='216';$Turkey='90';$Turkmenistan='993';$TurksCaicosIslands='1649';$Tuvalu='688';
$Uganda='256';$Ukraine='380';$UnitedArabEmirates='971';$UnitedStates='1';$Uruguay='598';
$Uzbekistan='998';$Vanuatu='678';$Venezuela='58';$Vietnam='84';$VirginIslandsBritish='1284';
$VirginIslandsUS='1340';$WallisFutuna='681';$Yemen='967';$Zambia='260';$Zimbabwe='263';

$indiaC='';$malaysiaC='';$chinaC='';$japanC='';$americaC='';$southAfricaC='';$ukC='';$singaporeC='';
$AfghanistanC='';$AlbaniaC='';$NetherlandsAntillesC='';$AlgeriaC='';
$AmericanSamoaC='';$AndorraC='';$AngolaC='';$AnguillaC='';$AntarcticaC='';
$AntiguaBarbudaC='';$ArgentinaC='';$ArmeniaC='';$ArubaC='';$AustraliaC='';
$AustriaC='';$AzerbaijanC='';$BahamasC='';$BahrainC='';$BangladeshC='';
$BarbadoscC='';$BelaruscC='';$BelgiumC='';$BelizeC='';$BeninC='';$BermudaC='';
$BhutanC='';$BoliviaC='';$BosniaHerzegovinaC='';$BotswanaC='';$BrazilC='';
$BruneiDarussalamC='';$BulgariaC='';$BurkinaFasoC='';$BurundiC='';$CambodiaC='';
$CameroonC='';$CanadaC='';$CapeVerdeC='';$CaymanIslandsC='';$CentralAfricanRepublicC='';
$ChadC='';$ChileC='';$ColombiaC='';$ComorosC='';$CongoC='';$CongotheDemocraticRepublicC='';
$CookIslandsC='';$CostaRicaC='';$CôtedIvoireC='';$CroatiaC='';$CubaC='';
$CyprusC='';$CzechRepublicC='';$DenmarkC='';$DjiboutiC='';$DominicaC ='';
$DominicanRepublicC ='';$EcuadorC='';$EgyptC='';	$ElSalvadorC ='';
$EquatorialGuineaC='';$EritreaC ='';$EstoniaC='';$EthiopiaC='';
$FalklandIslandsMalvinasC='';$FaroeIslandsC='';$FijiC='';$FinlandC='';$FranceC ='';
$FrenchGuianaC='';$FrenchPolynesiaC='';$GabonC='';$GambiaC='';$GeorgiaC ='';
$GermanyC='';$GhanaC='';$GibraltarC ='';$GreeceC='';$GreenlandC='';$GrenadaC='';
$GuadeloupeC='';$GuamC ='';$GuatemalaC ='';$GuineaC='';$GuineaBissauC='';
$GuyanaC='';$HaitiC='';$HolySeeVaticanCityStateC='';$HondurasC='';$HongKongC ='';
$HungaryC='';$IcelandC='';$IndonesiaC='';$iNumC='';$IranIslamicRepublicofC ='';
$IraqC ='';$IrelandC='';$IsraelC ='';$ItalyC='';$JamaicaC='';$JordanC='';
$KazakhstanC='';$KenyaC ='';$KiribatiC='';$KoreaDemocraticPeoplesRepublicofC ='';
$KoreaRepublicofC='';$KuwaitC='';$KyrgyzstanC='';$LaoPeoplesDemocraticRepublicC='';
$LebanonC='';$LesothoC='';$LiberiaC='';$LibyanArabJamahiriyaC='';$LiechtensteinC='';
$LithuaniaC='';$LuxembourgC='';$MacaoC='';$MacedoniaTheFormerYugoslavRepublicOfC='';
$MadagascarC='';$MalawiC='';$MaldivesC='';$MaliC='';$MaltaC='';$MarshallIslandsC='';
$MartiniqueC='';$MauritaniaC='';$MauritiusC='';$MayotteC='';$MexicoC='';$MicronesiaFederatedStatesofC='';
$MoldovaRepublicofC='';$MonacoC='';$MongoliaC='';$MontenegroC='';$MontserratC='';
$MoroccoC='';$MozambiqueC='';$MyanmarC='';$NamibiaC='';$NauruC='';$NepalC='';
$NetherlandsC='';$NewCaledoniaC='';$NewZealandC='';$NicaraguaC='';$NigerC='';
$NigeriaC='';$NiueC='';$NorthernMarianaIslandsC='';$NorwayC='';$OmanC='';
$PakistanC='';$PalauC='';$PalestinianTerritoryOccupiedC='';$PanamaC='';$PapuaGuineaC='';
$ParaguayC='';$PeruC='';$PhilippinesC='';$PolandC='';$PortugalC='';$PuertoRicoC='';
$QatarC='';$RéunionC='';$RomaniaC='';$RussianFederationC='';$RwandaC='';
$SaintHelenaC='';$SaintLuciaC='';$SaintPierreMiquelonC='';$SaintVincenttheGrenadinesC='';
$SamoaC='';$SanMarinoC='';$SaoTomePrincipeC='';$SaudiArabiaC='';$SenegalC='';
$SerbiaC='';$SeychellesC='';$SierraLeoneC='';$SlovakiaC='';$SloveniaC='';
$SolomonIslandsC='';$SomaliaC='';$SouthSudanC='';$SpainC='';$SriLankaC='';
$SudanC='';$SurinameC='';$SwazilandC='';$SwedenC='';$SwitzerlandC='';$SyrianArabRepublicC='';
$TaiwanC='';$TajikistanC='';$TanzaniaUnitedRepublicofC='';$ThailandC='';
$TimorLesteC='';$TogoC='';$TokelauC='';$TongaC='';$TrinidadTobagoC='';
$TunisiaC='';$TurkeyC='';$TurkmenistanC='';$TurksCaicosIslandsC='';$TuvaluC='';
$UgandaC='';$UkraineC='';$UnitedArabEmiratesC='';$UnitedStatesC='';$UruguayC='';
$UzbekistanC='';$VanuatuC='';$VenezuelaC='';$VietnamC='';$VirginIslandsBritishC='';
$VirginIslandsUSC='';$WallisFutunaC='';$YemenC='';$ZambiaC='';$ZimbabweC='';
if(isset($SESSION['Cgraph'])){
	foreach($SESSION['Cgraph']['infoCdrs'] as $data){ 
		if($india==$data['feePrefix']){
			$indiaC++;
		}
		if($malaysia==$data['feePrefix']){
			$malaysiaC++;
		}
		if($china==$data['feePrefix']){
			$chinaC++;
		}
		if($japan==$data['feePrefix']){
			$japanC++;
		}
		if($america==$data['feePrefix']){
			$americaC++;
		}
		if($southAfrica==$data['feePrefix']){
			$southAfricaC++;
		}
		if($uk==$data['feePrefix']){
			$ukC++;
		}
		if($singapore==$data['feePrefix']){
			$singaporeC++;
		}
		if($Afghanistan==$data['feePrefix']){
			$AfghanistanC++;
		}
		if($Albania==$data['feePrefix']){
			$AlbaniaC++;
		}
		if($NetherlandsAntilles==$data['feePrefix']){
			$NetherlandsAntillesC++;
		}
		if($Algeria==$data['feePrefix']){
			$AlgeriaC++;
		}
		if($AmericanSamoa==$data['feePrefix']){
			$AmericanSamoaC++;
		}
		if($Andorra==$data['feePrefix']){
			$AndorraC++;
		}
		if($Angola==$data['feePrefix']){
			$AngolaC++;
		}
		if($Anguilla==$data['feePrefix']){
			$AnguillaC++;
		}
		if($Antarctica==$data['feePrefix']){
			$AntarcticaC++;
		}
		if($AntiguaBarbuda==$data['feePrefix']){
			$AntiguaBarbudaC++;
		}
		if($Armenia==$data['feePrefix']){
			$ArmeniaC++;
			
		}
		if($Aruba==$data['feePrefix']){
			$ArubaC++;
		}
		if($Australia==$data['feePrefix']){
			$AustraliaC++;
		}
		if($Austria==$data['feePrefix']){
			$AustriaC++;
		}
		if($Azerbaijan==$data['feePrefix']){
			$AzerbaijanC++;
		}
		if($Bahamas==$data['feePrefix']){
			$BahamasC++;
		}
		if($Bahrain==$data['feePrefix']){
			$BahrainC++;
		}
		if($Bangladesh==$data['feePrefix']){
			$BangladeshC++;
		}
		if($Barbados==$data['feePrefix']){
			$BarbadosC++;
		}
		if($Belarus==$data['feePrefix']){
			$BelarusC++;
		}
		if($Belgium==$data['feePrefix']){
			$BelgiumC++;
		}
		if($Belize==$data['feePrefix']){
			$BelizeC++;
		}
		if($Benin==$data['feePrefix']){
			$BeninC++;
		}
		if($Bermuda==$data['feePrefix']){
			$BermudaC++;
		}
		if($Bhutan==$data['feePrefix']){
			$BhutanC++;
		}
		if($Bolivia==$data['feePrefix']){
			$BoliviaC++;
		}
		if($BosniaHerzegovina==$data['feePrefix']){
			$BosniaHerzegovinaC++;
		}
		if($Botswana==$data['feePrefix']){
			$BotswanaC++;
		}
		if($Brazil==$data['feePrefix']){
			$BrazilC++;
		}
		if($BruneiDarussalam==$data['feePrefix']){
			$BruneiDarussalamC++;
		}
		if($Bulgaria==$data['feePrefix']){
			$BulgariaC++;
		}
		if($BurkinaFaso==$data['feePrefix']){
			$BurkinaFasoC++;
		}
		if($Burundi==$data['feePrefix']){
			$BurundiC++;
		}
		if($Cambodia==$data['feePrefix']){
			$CambodiaC++;
		}
		if($Cameroon==$data['feePrefix']){
			$CameroonC++;
		}
		if($Canada==$data['feePrefix']){
			$CanadaC;
		}
		if($CapeVerde==$data['feePrefix']){
			$CapeVerdeC++;
		}
		if($CaymanIslands==$data['feePrefix']){
			$CaymanIslandsC++;
		}
		if($CentralAfricanRepublic==$data['feePrefix']){
			$CentralAfricanRepublicC++;
		}
		if($Chad==$data['feePrefix']){
			$ChadC++;
		}
		if($Chile==$data['feePrefix']){
			$ChileC++;
		}
		if($Colombia==$data['feePrefix']){
			$ColombiaC++;
		}
		if($Comoros==$data['feePrefix']){
			$ComorosC++;
		}
		if($Congo==$data['feePrefix']){
			$CongoC++;
		}
		if($CongotheDemocraticRepublic==$data['feePrefix']){
			$CongotheDemocraticRepublicC++;
		}
		if($CookIslands==$data['feePrefix']){
			$CookIslandsC++;
		}
		if($CostaRica==$data['feePrefix']){
			$CostaRicaC++;
		}
		if($CôtedIvoire==$data['feePrefix']){
			$CôtedIvoireC++;
		}
		if($Croatia==$data['feePrefix']){
			$CroatiaC++;
		}
		if($Cuba==$data['feePrefix']){
			$CubaC++;
		}
		if($Cyprus==$data['feePrefix']){
			$CyprusC++;
		}
		if($CzechRepublic==$data['feePrefix']){
			$CzechRepublicC++;
		}
		if($Denmark==$data['feePrefix']){
			$DenmarkC++;
		}
		if($Djibouti==$data['feePrefix']){
			$DjiboutiC++;
		}
		if($Dominica==$data['feePrefix']){
			$DominicaC++;
		}
		if($DominicanRepublic==$data['feePrefix']){
			$DominicanRepublicC++;
		}
		if($Ecuador==$data['feePrefix']){
			$EcuadorC++;
		}
		if($Egypt==$data['feePrefix']){
			$EgyptC++;
		}
		if($ElSalvador==$data['feePrefix']){
			$ElSalvadorC++;
		}
		if($EquatorialGuinea==$data['feePrefix']){
			$EritreaC++;
		}
		if($Estonia==$data['feePrefix']){
			$EstoniaC++;
		}
		if($Ethiopia==$data['feePrefix']){
			$EthiopiaC++;
		}
		if($FalklandIslandsMalvinas==$data['feePrefix']){
			$FalklandIslandsMalvinasC++;
		}
		if($FaroeIslands==$data['feePrefix']){
			$FaroeIslandsC++;
		}
		if($Fiji==$data['feePrefix']){
			$FijiC++;
		}
		if($Finland==$data['feePrefix']){
			$FinlandC++;
		}
		if($France==$data['feePrefix']){
			$FranceC++;
		}
		if($FrenchGuiana==$data['feePrefix']){
			$FrenchGuianaC++;
		}
		if($FrenchPolynesia==$data['feePrefix']){
			$FrenchPolynesiaC++;
		}if($Gabon==$data['feePrefix']){
			$GabonC++;
		}
		if($Gambia==$data['feePrefix']){
			$GambiaC++;
		}
		if($Georgia==$data['feePrefix']){
			$GeorgiaC++;
		}
		if($Germany==$data['feePrefix']){
			$GermanyC++;
		}
		if($Ghana==$data['feePrefix']){
			$GhanaC++;
		}
		if($Gibraltar==$data['feePrefix']){
			$GibraltarC++;
		}
		if($Greece==$data['feePrefix']){
			$GreeceC++;
		}
		if($Greenland==$data['feePrefix']){
			$GreenlandC++;
		}
		if($Grenada==$data['feePrefix']){
			$GrenadaC++;
		}
		if($Guadeloupe==$data['feePrefix']){
			$GuadeloupeC++;
		}
		if($Guam==$data['feePrefix']){
			$GuamC++;
		}
		if($Guatemala==$data['feePrefix']){
			$GuatemalaC++;
		}
		if($Guinea==$data['feePrefix']){
			$GuineaC++;
		}
		if($GuineaBissau==$data['feePrefix']){
			$GuineaBissauC++;
		}
		if($GuineaBissau==$data['feePrefix']){
			$GuineaBissauC++;
		}
		if($Guyana==$data['feePrefix']){
			$GuyanaC++;
		}if($Haiti==$data['feePrefix']){
			$HaitiC++;
		}
		if($HolySeeVaticanCityState==$data['feePrefix']){
			$HolySeeVaticanCityStateC++;
		}
		if($Honduras==$data['feePrefix']){
			$HondurasC++;
		}
		if($HongKong==$data['feePrefix']){
			$HongKongC++;
		}
		if($Hungary==$data['feePrefix']){
			$HungaryC++;
		}
		if($Iceland==$data['feePrefix']){
			$IcelandC++;
		}
		if($Indonesia==$data['feePrefix']){
			$IndonesiaC++;
		}
		if($iNum==$data['feePrefix']){
			$iNumC++;
		}
		if($Iraq==$data['feePrefix']){
			$IraqC++;
		}
		if($Ireland==$data['feePrefix']){
			$IrelandC++;
		}
		if($Israel==$data['feePrefix']){
			$IsraelC++;
		}
		if($Italy==$data['feePrefix']){
			$ItalC++;
		}
		if($Jamaica==$data['feePrefix']){
			$JamaicaC++;
		}
		if($Jordan==$data['feePrefix']){
			$JordanC++;
		}
		if($Kazakhstan==$data['feePrefix']){
			$KazakhstanC++;
		}
		if($Kenya==$data['feePrefix']){
			$KenyaC++;
		}
		if($Kiribati==$data['feePrefix']){
			$KiribatiC++;
		}
		if($KoreaRepublicof==$data['feePrefix']){
			$KoreaRepublicofC++;
		}
		if($Kuwait==$data['feePrefix']){
			$KuwaitC++;
		}
		if($Kyrgyzstan==$data['feePrefix']){
			$KyrgyzstanC++;
		}
		if($NorthernMarianaIslands==$data['feePrefix']){
			$NorthernMarianaIslandsC++;
		}
		if($Norway==$data['feePrefix']){
			$NorwayC++;
		}if($Oman==$data['feePrefix']){
			$OmanC++;
		}
		if($Pakistan==$data['feePrefix']){
			$PakistanC++;
		}
		if($Palau==$data['feePrefix']){
			$PalauC++;
		}
		if($PalestinianTerritoryOccupied==$data['feePrefix']){
			$PalestinianTerritoryOccupiedC++;
		}
		if($Panama==$data['feePrefix']){
			$PanamaC++;
		}
		if($PapuaGuinea==$data['feePrefix']){
			$PapuaGuineaC++;
		}
		if($Paraguay==$data['feePrefix']){
			$ParaguayC++;
		}
		if($Peru==$data['feePrefix']){
			$PeruC++;
		}
		if($Philippines==$data['feePrefix']){
			$PhilippinesC++;
		 }
		if($Poland==$data['feePrefix']){
			$PolandC++;
		}
		if($Portugal==$data['feePrefix']){
			$PortugalC++;
		}
		if($PuertoRico==$data['feePrefix']){
			$PuertoRicoC++;
		}
		if($Qatar==$data['feePrefix']){
			$QatarC++;
		 }
		if($Reunion==$data['feePrefix']){
			$ReunionC++;
		}
		if($Romania==$data['feePrefix']){
			$RomaniaC++;
		}
		if($RussianFederation==$data['feePrefix']){
			$RussianFederationT++;
		}
		if($Rwanda==$data['feePrefix']){
			$RwandaC++;
		}
		if($SaintHelena==$data['feePrefix']){
			$SaintHelenaC++;
		}
		if($SaintLucia==$data['feePrefix']){
			$SaintLuciaC++;
		}
		if($SaintVincenttheGrenadines==$data['feePrefix']){
			$SaintVincenttheGrenadinesC++;
		 }
		if($Samoa==$data['feePrefix']){
			$SamoaC++;
		}
		if($SanMarino==$data['feePrefix']){
			$SanMarinoC++;
		}
		if($Senegal==$data['feePrefix']){
			$SenegalC++;
		}
		if($SolomonIslands==$data['feePrefix']){
			$SolomonIslandsC++;
		}
		if($Somalia==$data['feePrefix']){
			$SomaliaC++;
		}
		if($SouthSudan==$data['feePrefix']){
			$SouthSudanC++;
		}
		if($Spain==$data['feePrefix']){
			$SpainC++;
		 }
		if($SriLanka==$data['feePrefix']){
			$SriLankaC++;
		}
		if($Sudan==$data['feePrefix']){
			$SudanC++;
		}
		if($Suriname==$data['feePrefix']){
			$SurinameC++;
		 }
		if($Swaziland==$data['feePrefix']){
			$SwazilandC++;
        }
		if($Sweden==$data['feePrefix']){
			$SwedenC++;
		}
		if($Switzerland==$data['feePrefix']){
			$SwitzerlandC++;
		}
		if($SyrianArabRepublic==$data['feePrefix']){
			$SyrianArabRepublicC++;
		}
		if($Taiwan==$data['feePrefix']){
			$TaiwanC++;
		}
		if($Tajikistan==$data['feePrefix']){
			$TajikistanC++;
		}
		if($TanzaniaUnitedRepublicof==$data['feePrefix']){
			$TanzaniaUnitedRepublicofC;
		}
		if($Thailand==$data['feePrefix']){
			$ThailandC++;
		}
		if($TimorLeste==$data['feePrefix']){
			$TimorLesteC++;
		}
		if($Togo==$data['feePrefix']){
			$TogoC++;
		}
		if($Tokelau==$data['feePrefix']){
			$TokelauC++;
		}
		if($Tonga==$data['feePrefix']){
			$TongaC++;
		}
		if($TrinidadTobago==$data['feePrefix']){
			$TrinidadTobagoC++;
		}
		if($Tunisia==$data['feePrefix']){
			$TunisiaC++;
		}
		if($Turkey==$data['feePrefix']){
			$TurkeyC++;
		}
		if($Turkmenistan==$data['feePrefix']){
			$TurkmenistanC++;
		}
		if($TurksCaicosIslands==$data['feePrefix']){
			$TurksCaicosIslandsC++;
		}
		if($Tuvalu==$data['feePrefix']){
			$TuvaluC++;
		}
		if($Uganda==$data['feePrefix']){
			$UgandaC++;
		}
		if($Ukraine==$data['feePrefix']){
			$UkraineC++;
		}
		if($UnitedArabEmirates==$data['feePrefix']){
			$UnitedArabEmiratesC++;
		}
		if($UnitedStates==$data['feePrefix']){
			$UnitedStatesC++;
		}
		if($Uruguay==$data['feePrefix']){
			$UruguayC++;
		}
		if($Uzbekistan==$data['feePrefix']){
			$UzbekistanC++;
			
        }
		if($Vanuatu==$data['feePrefix']){
			$VanuatuC++;
		}
		if($Venezuela==$data['feePrefix']){
			$VenezuelaC++;		
        }
		if($Vietnam==$data['feePrefix']){
			$VietnamC++;
		 }
		if($VirginIslandsBritish==$data['feePrefix']){
			$VirginIslandsBritishC++;
        }
		if($VirginIslandsUS==$data['feePrefix']){
			$VirginIslandsUSC++;
		}
		if($WallisFutuna==$data['feePrefix']){
			$WallisFutunaC++;
		}
		if($Yemen==$data['feePrefix']){
			$YemenC++;
		}
		if($Zambia==$data['feePrefix']){
			$ZambiaC++;
		}
		if($Zimbabwe==$data['feePrefix']){
			$ZimbabweC++;
		}
	}
	//echo $ZimbabweC;exit;
	$json='[{"type":"pie","name":"user calls","data":[';
	$dataCnt=0;
	for($i=1;$i<5;$i++){		   
		if($indiaC!=''){
			$json=$json.'["india",'.$indiaC.'],';
			$dataCnt++;
		}
		if($malaysiaC!=''){
			$json=$json.'["malaysia",'.$malaysiaC.'],';
			$dataCnt++;
		}
		if($chinaC!=''){
			$json=$json.'["china",'.$chinaC.'],';
			$dataCnt++;
		}
		if($japanC!=''){
			$json=$json.'["japan",'.$japanC.'],';
			$dataCnt++;
		}
		if($americaC!=''){
			$json=$json.'["america",'.$americaC.'],';
			$dataCnt++;
		}
		if($southAfricaC!=''){
			$json=$json.'["southAfrica",'.$southAfricaC.'],';
			$dataCnt++;
		}
		if($singaporeC!=''){
			$json=$json.'["singapore",'.$singaporeC.'],';
			$dataCnt++;
		}
		if($AfghanistanC!=''){
			$json=$json.'["Afghanistan",'.$AfghanistanC.'],';
			$dataCnt++;
		}
		if($AlbaniaC!=''){
			$json=$json.'["Albania",'.$AlbaniaC.'],';
			$dataCnt++;
		}
		if($NetherlandsAntillesC!=''){
			$json=$json.'["NetherlandsAntilles",'.$NetherlandsAntillesC.'],';
			$dataCnt++;
		}
		if($AlgeriaC!=''){
			$json=$json.'["Algeria",'.$AlgeriaC.'],';
			$dataCnt++;
		}
		if($AmericanSamoaC!=''){
			$json=$json.'["AmericanSamoa",'.$AmericanSamoaC.'],';
			$dataCnt++;
		}
		if($AndorraC!=''){
			$json=$json.'["Andorra",'.$AndorraC.'],';
			$dataCnt++;
		}
		if($AngolaC!=''){
			$json=$json.'["Angola",'.$AngolaC.'],';
			$dataCnt++;
		}
		if($AnguillaC!=''){
			$json=$json.'["Anguilla",'.$AnguillaC.'],';
			$dataCnt++;
		}
		if($AntarcticaC!=''){
			$json=$json.'["Antarctica",'.$AntarcticaC.'],';
			$dataCnt++;
		}
		if($AntiguaBarbudaC!=''){
			$json=$json.'["AntiguaBarbuda",'.$AntiguaBarbudaC.'],';
			$dataCnt++;
		}
		if($ArgentinaC!=''){
			$json=$json.'["Argentina",'.$ArgentinaC.'],';
			$dataCnt++;
		}
		if($ArmeniaC!=''){
			$json=$json.'["Armenia",'.$ArmeniaC.'],';
			$dataCnt++;
		}
		if($ArubaC!=''){
			$json=$json.'["Aruba",'.$ArubaC.'],';
			$dataCnt++;
		}
		if($AustraliaC!=''){
			$json=$json.'["Australia",'.$AustraliaC.'],';
			$dataCnt++;
		}
		if($AustriaC!=''){
			$json=$json.'["Austria",'.$AustriaC.'],';
			$dataCnt++;
		}
		if($AzerbaijanC!=''){
			$json=$json.'["Azerbaijan",'.$AzerbaijanC.'],';
			$dataCnt++;
		}
		if($BahamasC!=''){
			$json=$json.'["Bahamas",'.$BahamasC.'],';
			$dataCnt++;
		}
		if($BahrainC!=''){
			$json=$json.'["Bahrain",'.$BahrainC.'],';
			$dataCnt++;
		}
		if($BangladeshC!=''){
			$json=$json.'["Bangladesh",'.$BangladeshC.'],';
			$dataCnt++;
		}
		if($BarbadoscC!=''){
			$json=$json.'["Barbadosc",'.$BarbadoscC.'],';
			$dataCnt++;
		}
		if($BelaruscC!=''){
			$json=$json.'["Belarusc",'.$BelaruscC.'],';
			$dataCnt++;
		}
		if($BelgiumC!=''){
			$json=$json.'["Belgium",'.$BelgiumC.'],';
			$dataCnt++;
		}
		if($BelizeC!=''){
			$json=$json.'["Belize",'.$BelizeC.'],';
			$dataCnt++;
		}
		if($BeninC!=''){
			$json=$json.'["BeninC",'.$BeninC.'],';
			$dataCnt++;
		}
		if($BermudaC!=''){
			$json=$json.'["BermudaC",'.$BermudaC.'],';
			$dataCnt++;
		}
		if($BhutanC!=''){
		    $json=$json.'["Bhutan",'.$BhutanC.'],';
			$dataCnt++;
		}
		if($BoliviaC!=''){
		    $json=$json.'["Bolivia",'.$BoliviaC.'],';
			$dataCnt++;
		}
		if($BosniaHerzegovinaC!=''){
		    $json=$json.'["BosniaHerzegovina",'.$BosniaHerzegovinaC.'],';
			$dataCnt++;
		}
		if($BotswanaC!=''){
			$json=$json.'["Botswana",'.$BotswanaC.'],';
			$dataCnt++;
		}
		if($BrazilC!=''){
			$json=$json.'["Brazil",'.$BrazilC.'],';
			$dataCnt++;
		}
		if($BruneiDarussalamC!=''){
			$json=$json.'["BruneiDarussalam",'.$BruneiDarussalamC.'],';
			$dataCnt++;
		}
		if($BulgariaC!=''){
			$json=$json.'["Bulgaria",'.$BulgariaC.'],';
			$dataCnt++;
		}
		if($BurkinaFasoC!=''){
			$json=$json.'["BurkinaFaso",'.$BurkinaFasoC.'],';
			$dataCnt++;
		}
		if($BurundiC!=''){
			$json=$json.'["Burundi",'.$BurundiC.'],';
			$dataCnt++;
		}
		if($CambodiaC!=''){
			$json=$json.'["Cambodia",'.$CambodiaC.'],';
			$dataCnt++;
		}
		if($CameroonC!=''){
			$json=$json.'["Cameroon",'.$CameroonC.'],';
			$dataCnt++;
		}
		if($CanadaC!=''){
			$json=$json.'["Canada",'.$CanadaC.'],';
			$dataCnt++;
		}
		if($CapeVerdeC!=''){
			$json=$json.'["CapeVerde",'.$CapeVerdeC.'],';
			$dataCnt++;
		}
		if($CaymanIslandsC!=''){
			$json=$json.'["CaymanIslands",'.$CaymanIslandsC.'],';
			$dataCnt++;
		}
		if($CentralAfricanRepublicC!=''){
			$json=$json.'["CentralAfricanRepublic",'.$CentralAfricanRepublicC.'],';
			$dataCnt++;
		}
		if($ChadC!=''){
			$json=$json.'["Chad",'.$ChadC.'],';
			$dataCnt++;
		}
		if($ChileC!=''){
			$json=$json.'["Chile",'.$ChileC.'],';
			$dataCnt++;
		}
		if($ColombiaC!=''){
			$json=$json.'["Colombia",'.$ColombiaC.'],';
			$dataCnt++;
		}
		if($ComorosC!=''){
			$json=$json.'["Comoros",'.$ComorosC.'],';
			$dataCnt++;
		}
		if($CongoC!=''){
			$json=$json.'["Congo",'.$CongoC.'],';
			$dataCnt++;
		}
		if($CongotheDemocraticRepublicC!=''){
			$json=$json.'["CongotheDemocraticRepublic",'.$CongotheDemocraticRepublicC.'],';
			$dataCnt++;
		}
		if($CookIslandsC!=''){
			$json=$json.'["CookIslands",'.$CookIslandsC.'],';
			$dataCnt++;
		}
		if($CostaRicaC!=''){
			$json=$json.'["CostaRica",'.$CostaRicaC.'],';
			$dataCnt++;
		}
		if($CôtedIvoireC!=''){
			$json=$json.'["CôtedIvoire",'.$CôtedIvoireC.'],';
			$dataCnt++;
		}
		if($CroatiaC!=''){
			$json=$json.'["Croatia",'.$CroatiaC.'],';
			$dataCnt++;
		}
		if($CubaC!=''){
			$json=$json.'["Cuba",'.$CubaC.'],';
			$dataCnt++;
		}
		if($CyprusC!=''){
			$json=$json.'["Cyprus",'.$CyprusC.'],';
			$dataCnt++;
		}
		if($CzechRepublicC!=''){
			$json=$json.'["CzechRepublic",'.$CzechRepublicC.'],';
			$dataCnt++;
		}
		if($DenmarkC!=''){
			$json=$json.'["Denmark",'.$DenmarkC.'],';
			$dataCnt++;
		}
		if($DjiboutiC!=''){
			$json=$json.'["Djibouti",'.$DjiboutiC.'],';
			$dataCnt++;
		}
		if($DominicaC!=''){
			$json=$json.'["Dominica",'.$DominicaC.'],';
			$dataCnt++;
		}
		if($DominicanRepublicC!=''){
			$json=$json.'["DominicanRepublic",'.$DominicanRepublicC.'],';
			$dataCnt++;
		}
		if($EcuadorC!=''){
			$json=$json.'["Ecuador",'.$EcuadorC.'],';
			$dataCnt++;
		}
		if($EgyptC!=''){
			$json=$json.'["Egypt",'.$EgyptC.'],';
			$dataCnt++;
		}
		if($ElSalvadorC!=''){
			$json=$json.'["ElSalvador",'.$ElSalvadorC.'],';
			$dataCnt++;
		}
		if($EquatorialGuineaC!=''){
			$json=$json.'["EquatorialGuinea",'.$EquatorialGuineaC.'],';
			$dataCnt++;
		}
		if($EritreaC!=''){
			$json=$json.'["Eritrea",'.$EritreaC.'],';
			$dataCnt++;
		}
		if($EstoniaC!=''){
			$json=$json.'["Estonia",'.$EstoniaC.'],';
			$dataCnt++;
		}
		if($EthiopiaC!=''){
			$json=$json.'["Ethiopia",'.$EthiopiaC.'],';
			$dataCnt++;
		}
		if($FalklandIslandsMalvinasC!=''){
			$json=$json.'["FalklandIslandsMalvinas",'.$FalklandIslandsMalvinasC.'],';
			$dataCnt++;
		}
		if($FaroeIslandsC!=''){
			$json=$json.'["FaroeIslands",'.$FaroeIslandsC.'],';
			$dataCnt++;
		}
		if($FijiC!=''){
			$json=$json.'["Fiji",'.$FijiC.'],';
			$dataCnt++;
		}
		if($FinlandC!=''){
			$json=$json.'["Finland",'.$FinlandC.'],';
			$dataCnt++;
		}
		if($FinlandC!=''){
			$json=$json.'["France",'.$FranceC.'],';
			$dataCnt++;
		}
		if($FrenchGuianaC!=''){
			$json=$json.'["FrenchGuiana",'.$FrenchGuianaC.'],';
			$dataCnt++;
		}
		if($FrenchPolynesiaC!=''){
			$json=$json.'["FrenchPolynesia",'.$FrenchPolynesiaC.'],';
			$dataCnt++;
		}
		if($GabonC!=''){
			$json=$json.'["Gabon",'.$GabonC.'],';
			$dataCnt++;
		}
		if($GambiaC!=''){
			$json=$json.'["Gambia",'.$GambiaC.'],';
			$dataCnt++;
		}
		if($GeorgiaC!=''){
			$json=$json.'["Georgia",'.$GeorgiaC.'],';
			$dataCnt++;
		}
		if($GermanyC!=''){
			$json=$json.'["Germany",'.$GermanyC.'],';
			$dataCnt++;
		}
		if($GhanaC!=''){
			$json=$json.'["Ghana",'.$GhanaC.'],';
			$dataCnt++;
		}
		if($GibraltarC!=''){
			$json=$json.'["Gibraltar",'.$GibraltarC.'],';
			$dataCnt++;
		}
		if($GreeceC!=''){
			$json=$json.'["Greece",'.$GreeceC.'],';
			$dataCnt++;
		}
		if($GreenlandC!=''){
			$json=$json.'["Greenland",'.$GreenlandC.'],';
			$dataCnt++;
		}
		if($GrenadaC!=''){
			$json=$json.'["Grenada",'.$GrenadaC.'],';
			$dataCnt++;
		}
		if($GuadeloupeC!=''){
			$json=$json.'["Guadeloupe",'.$GuadeloupeC.'],';
			$dataCnt++;
		}
		if($GuamC!=''){
			$json=$json.'["Guam",'.$GuamC.'],';
			$dataCnt++;
		}
		if($GuatemalaC!=''){
			$json=$json.'["Guatemala",'.$GuatemalaC.'],';
			$dataCnt++;
		}
		if($GuineaC!=''){
			$json=$json.'["Guinea",'.$GuineaC.'],';
			$dataCnt++;
		}
		if($GuineaBissauC!=''){
			$json=$json.'["GuineaBissau",'.$GuineaBissauC.'],';
			$dataCnt++;
		}
		if($GuyanaC!=''){
			$json=$json.'["Guyana",'.$GuyanaC.'],';
			$dataCnt++;
		}
		if($HaitiC!=''){
			$json=$json.'["Haiti",'.$HaitiC.'],';
			$dataCnt++;
		}
		if($HolySeeVaticanCityStateC!=''){
			$json=$json.'["HolySeeVaticanCityState",'.$HolySeeVaticanCityStateC.'],';
			$dataCnt++;
		}
		if($HondurasC!=''){
			$json=$json.'["Honduras",'.$HondurasC.'],';
			$dataCnt++;
		}
		if($HongKongC!=''){
			$json=$json.'["HongKong",'.$HongKongC.'],';
			$dataCnt++;
		}
		if($HungaryC!=''){
			$json=$json.'["Hungary",'.$HungaryC.'],';
			$dataCnt++;
		}
		if($IcelandC!=''){
			$json=$json.'["Iceland",'.$IcelandC.'],';
			$dataCnt++;
		}
		if($IndonesiaC!=''){
			$json=$json.'["Indonesia",'.$IndonesiaC.'],';
			$dataCnt++;
		}
		if($iNumC!=''){
			$json=$json.'["iNumC",'.$iNumC.'],';
			$dataCnt++;
			}
		if($IranIslamicRepublicofC!=''){
			$json=$json.'["IranIslamicRepublicof",'.$IranIslamicRepublicofC.'],';
			$dataCnt++;
		}
		if($IraqC!=''){
			$json=$json.'["Iraq",'.$IraqC.'],';
			$dataCnt++;
		}
		if($IrelandC!=''){
			$json=$json.'["Ireland",'.$IrelandC.'],';
			$dataCnt++;
		}
		if($IsraelC!=''){
			$json=$json.'["Israel",'.$IsraelC.'],';
			$dataCnt++;
		}
		if($ItalyC!=''){
			$json=$json.'["Italy",'.$ItalyC.'],';
			$dataCnt++;
		}
		if($JamaicaC!=''){
			$json=$json.'["Jamaica",'.$JamaicaC.'],';
			$dataCnt++;
		}
		if($JordanC!=''){
			$json=$json.'["Jordan",'.$JordanC.'],';
			$dataCnt++;
		}
		if($KazakhstanC!=''){
			$json=$json.'["Kazakhstan",'.$KazakhstanC.'],';
			$dataCnt++;
		}
		if($KenyaC!=''){
			$json=$json.'["Kenya",'.$KenyaC.'],';
			$dataCnt++;
		}
		if($KiribatiC!=''){
			$json=$json.'["Kiribati",'.$KiribatiC.'],';
			$dataCnt++;
		}
		if($KoreaDemocraticPeoplesRepublicofC!=''){
			$json=$json.'["KoreaDemocraticPeoplesRepublicof",'.$KoreaDemocraticPeoplesRepublicofC.'],';
			$dataCnt++;
		}
		if($KoreaRepublicofC!=''){
			$json=$json.'["KoreaRepublicof",'.$KoreaRepublicofC.'],';
			$dataCnt++;
		}
		if($KuwaitC!=''){
			$json=$json.'["Kuwait",'.$KuwaitC.'],';
			$dataCnt++;
		}
		if($KyrgyzstanC!=''){
			$json=$json.'["Kyrgyzstan",'.$KyrgyzstanC.'],';
			$dataCnt++;
		}
		if($LaoPeoplesDemocraticRepublicC!=''){
			$json=$json.'["LaoPeoplesDemocraticRepublic",'.$LaoPeoplesDemocraticRepublicC.'],';
			$dataCnt++;
		}
		if($LebanonC!=''){
			$json=$json.'["Lebanon",'.$LebanonC.'],';
			$dataCnt++;
	    }
		if($LesothoC!=''){
		    $json=$json.'["Lesotho",'.$LesothoC.'],';
			$dataCnt++;
		}
		if($LiberiaC!=''){
			$json=$json.'["Liberia",'.$LiberiaC.'],';
			$dataCnt++;
		}
		 if($LibyanArabJamahiriyaC!=''){
			$json=$json.'["LibyanArabJamahiriya",'.$LibyanArabJamahiriyaC.'],';
			$dataCnt++;
		 }
		 if($LiechtensteinC!=''){
			$json=$json.'["Liechtenstein",'.$LiechtensteinC.'],';
			$dataCnt++;
		 }
		 if($LithuaniaC!=''){
			$json=$json.'["Lithuania",'.$LithuaniaC.'],';
			$dataCnt++;
		 }
		 if($LuxembourgC!=''){
			$json=$json.'["Luxembourg",'.$LuxembourgC.'],';
			$dataCnt++;
		 }
		 if($MacaoC!=''){
			$json=$json.'["Macao",'.$MacaoC.'],';
			$dataCnt++;
		 }
		 if($MacedoniaTheFormerYugoslavRepublicOfC!=''){
			$json=$json.'["MacedoniaTheFormerYugoslavRepublicOf",'.$MacedoniaTheFormerYugoslavRepublicOfC.'],';
			$dataCnt++;
		 }
		 if($MadagascarC!=''){
			$json=$json.'["Madagascar",'.$MadagascarC.'],';
			$dataCnt++;
		 }
		 if($MalawiC!=''){
			$json=$json.'["Malawi",'.$MalawiC.'],';
			$dataCnt++;
		 }
		 if($MadagascarC!=''){
			$json=$json.'["Maldives",'.$MaldivesC.'],';
			$dataCnt++;
		 }
		 if($MaliC!=''){
			$json=$json.'["Mali",'.$MaliC.'],';
			$dataCnt++;
		 }
		 if($MaltaC!=''){
			$json=$json.'["Malta",'.$MaltaC.'],';
			$dataCnt++;
		 }
		 if($MarshallIslandsC!=''){
			$json=$json.'["MarshallIslands",'.$MarshallIslandsC.'],';
			$dataCnt++;
		 }
		 if($MauritaniaC!=''){
			$json=$json.'["Mauritania",'.$MauritaniaC.'],';
			$dataCnt++;
		 }
		 if($MauritiusC!=''){
			$json=$json.'["Mauritius",'.$MauritiusC.'],';
			$dataCnt++;
		 }
		 if($MayotteC!=''){
			$json=$json.'["Mayotte",'.$MayotteC.'],';
			$dataCnt++;
		 }
		 if($MexicoC!=''){
			$json=$json.'["Mexico",'.$MexicoC.'],';
			$dataCnt++;
		 }
		 if($MicronesiaFederatedStatesofC!=''){
			$json=$json.'["MicronesiaFederatedStatesof",'.$MicronesiaFederatedStatesofC.'],';
			$dataCnt++;
		 }
		 if($MoldovaRepublicofC!=''){
			$json=$json.'["MoldovaRepublicof",'.$MoldovaRepublicofC.'],';
			$dataCnt++;
		 }
		 if($MonacoC!=''){
			$json=$json.'["Monaco",'.$MonacoC.'],';
			$dataCnt++;
		 }
		 if($MongoliaC!=''){
			$json=$json.'["Mongolia",'.$MongoliaC.'],';
			$dataCnt++;
		 }
		 if($MontenegroC!=''){
			$json=$json.'["Montenegro",'.$MontenegroC.'],';
			$dataCnt++;
		 }
		 if($MontserratC!=''){
			$json=$json.'["Montserrat",'.$MontserratC.'],';
			$dataCnt++;
		}
		 if($MoroccoC!=''){
			$json=$json.'["Morocco",'.$MoroccoC.'],';
			$dataCnt++;
		 }
		 if($MozambiqueC!=''){
			$json=$json.'["Mozambique",'.$MozambiqueC.'],';
			$dataCnt++;
		 }
		 if($MyanmarC!=''){
			$json=$json.'["Myanmar",'.$MyanmarC.'],';
			$dataCnt++;
		 }
		 if($NamibiaC!=''){
			$json=$json.'["Namibia",'.$NamibiaC.'],';
			$dataCnt++;
		 }
		 if($NauruC!=''){
			$json=$json.'["Nauru",'.$NauruC.'],';
			$dataCnt++;
		}
		 if($NepalC!=''){
			$json=$json.'["Nepal",'.$NepalC.'],';
			$dataCnt++;
		 }
		 if($NetherlandsC!=''){
			$json=$json.'["Netherlands",'.$NetherlandsC.'],';
			$dataCnt++;
		 }
		 if($NewCaledoniaC!=''){
			$json=$json.'["NewCaledonia",'.$NewCaledoniaC.'],';
			$dataCnt++;
		  }
		 if($NewZealandC!=''){
			$json=$json.'["NewZealand",'.$NewZealandC.'],';
			$dataCnt++;
		 }
		 if($NicaraguaC!=''){
			$json=$json.'["Nicaragua",'.$NicaraguaC.'],';
			$dataCnt++;
		 }
		 if($NigerC!=''){
			$json=$json.'["Niger",'.$NigerC.'],';
			$dataCnt++;
		  }
		 if($NigeriaC!=''){
			$json=$json.'["Nigeria",'.$NigeriaC.'],';
			$dataCnt++;
		 }
		 if($NepalC!=''){
			$json=$json.'["Nepal",'.$NepalC.'],';
			$dataCnt++;
		 }
		 if($NiueC!=''){
			$json=$json.'["Niue",'.$NiueC.'],';
			$dataCnt++;
		 }
		 if($NorthernMarianaIslandsC!=''){
			$json=$json.'["NorthernMarianaIslands",'.$NorthernMarianaIslandsC.'],';
			$dataCnt++;
		 }
		 if($NorwayC!=''){
			$json=$json.'["Norway",'.$NorwayC.'],';
			$dataCnt++;
		 }
		 if($PakistanC!=''){
			$json=$json.'["Pakistan",'.$PakistanC.'],';
			$dataCnt++;
		 }
		 if($PalauC!=''){
			$json=$json.'["Palau",'.$PalauC.'],';
			$dataCnt++;
		 }
		 if($PalestinianTerritoryOccupiedC!=''){
			$json=$json.'["PalestinianTerritoryOccupied",'.$PalestinianTerritoryOccupiedC.'],';
			$dataCnt++;
		 }
		 if($PapuaGuineaC!=''){
			$json=$json.'["PapuaGuinea",'.$PapuaGuineaC.'],';
			$dataCnt++;
		 }
		 if($ParaguayC!=''){
			$json=$json.'["Paraguay",'.$ParaguayC.'],';
			$dataCnt++;
		 }
		 if($PeruC!=''){
			$json=$json.'["Peru",'.$PeruC.'],';
			$dataCnt++;
		 }
		 if($PhilippinesC!=''){
			$json=$json.'["Philippines",'.$PhilippinesC.'],';
			$dataCnt++;
		 }
		 if($PolandC!=''){
			$json=$json.'["Poland",'.$PolandC.'],';
			$dataCnt++;
		 }
		 if($PortugalC!=''){
			$json=$json.'["Portugal",'.$PortugalC.'],';
			$dataCnt++;
		 }
		 if($PuertoRicoC!=''){
			$json=$json.'["PuertoRico",'.$PuertoRicoC.'],';
			$dataCnt++;
		 }
		 if($QatarC!=''){
			$json=$json.'["Qatar",'.$QatarC.'],';
			$dataCnt++;
		 }
		if($RéunionC!=''){
			$json=$json.'["Réunion",'.$RéunionC.'],';
			$dataCnt++;
		  }
		if($RomaniaC!=''){
			$json=$json.'["Romania",'.$RomaniaC.'],';
			$dataCnt++;
		  }
		if($RussianFederationC!=''){
			$json=$json.'["RussianFederation",'.$RussianFederationC.'],';
			$dataCnt++;
		 }
		if($RwandaC!=''){
			$json=$json.'["Rwanda",'.$RwandaC.'],';
			$dataCnt++;
		 }
		if($SaintHelenaC!=''){
			$json=$json.'["SaintHelena",'.$SaintHelenaC.'],';
			$dataCnt++;
		 }
		if($SaintLuciaC!=''){
			$json=$json.'["SaintLucia",'.$SaintLuciaC.'],';
			$dataCnt++;
		 }
		if($SaintPierreMiquelonC!=''){
			$json=$json.'["SaintPierreMiquelon",'.$SaintPierreMiquelonC.'],';
			$dataCnt++;
		 }
		if($SamoaC!=''){
			$json=$json.'["SamoaC",'.$SamoaC.'],';
			$dataCnt++;
		 }
		 if($SanMarinoC!=''){
			$json=$json.'["SanMarino",'.$SanMarinoC.'],';
			$dataCnt++;
		 }
		 if($SaoTomePrincipeC!=''){
			$json=$json.'["SaoTomePrincipe",'.$SaoTomePrincipeC.'],';
			$dataCnt++;
		 }
		 if($SaudiArabiaC!=''){
			$json=$json.'["SaudiArabia",'.$SaudiArabiaC.'],';
			$dataCnt++;
		 }
		 if($SenegalC!=''){
			$json=$json.'["Senegal",'.$SenegalC.'],';
			$dataCnt++;
		 }
		 if($SerbiaC!=''){
			$json=$json.'["Serbia",'.$SerbiaC.'],';
			$dataCnt++;
		  }
		 if($SeychellesC!=''){
			$json=$json.'["Seychelles",'.$SeychellesC.'],';
			$dataCnt++;
		 }
		 if($SierraLeoneC!=''){
			$json=$json.'["SierraLeone",'.$SierraLeoneC.'],';
			$dataCnt++;
		 }
		 if($SerbiaC!=''){
			$json=$json.'["Serbia",'.$SerbiaC.'],';
			$dataCnt++;
		}
		 if($SlovakiaC!=''){
			$json=$json.'["Slovakia",'.$SlovakiaC.'],';
			$dataCnt++;
		 }
		 if($SloveniaC!=''){
			$json=$json.'["Slovenia",'.$SloveniaC.'],';
			$dataCnt++;
		 }
		 if($SolomonIslandsC!=''){
			$json=$json.'["SolomonIslands",'.$SolomonIslandsC.'],';
			$dataCnt++;
		 }
		 if($SomaliaC!=''){
			$json=$json.'["Somalia",'.$SomaliaC.'],';
			$dataCnt++;
		 }
		 if($SouthSudanC!=''){
			$json=$json.'["SouthSudan",'.$SouthSudanC.'],';
			$dataCnt++;
		 }
		 if($SpainC!=''){
			$json=$json.'["Spain",'.$SpainC.'],';
			$dataCnt++;
		 }
		 if($SriLankaC!=''){
			$json=$json.'["SriLanka",'.$SriLankaC.'],';
			$dataCnt++;
		 }
		 if($SudanC!=''){
			$json=$json.'["Sudan",'.$SudanC.'],';
			$dataCnt++;
		  }
		 if($SurinameC!=''){
			$json=$json.'["Suriname",'.$SurinameC.'],';
			$dataCnt++;
		  }
		 if($SwazilandC!=''){
			$json=$json.'["Swaziland",'.$SwazilandC.'],';
			$dataCnt++;
		 }
		 if($SwedenC!=''){
			$json=$json.'["Sweden",'.$SwedenC.'],';
			$dataCnt++;
		 }
		 if($SwitzerlandC!=''){
			$json=$json.'["Switzerland",'.$SwitzerlandC.'],';
			$dataCnt++;
		 }
		 if($SyrianArabRepublicC!=''){
			$json=$json.'["SyrianArabRepublic",'.$SyrianArabRepublicC.'],';
			$dataCnt++;
		 }
		 if($TaiwanC!=''){
			$json=$json.'["Taiwan",'.$TaiwanC.'],';
			$dataCnt++;
		 }
		 if($TajikistanC!=''){
			$json=$json.'["Tajikistan",'.$TajikistanC.'],';
			$dataCnt++;
		 }
		 if($TanzaniaUnitedRepublicofC!=''){
			$json=$json.'["TanzaniaUnitedRepublicof",'.$TanzaniaUnitedRepublicofC.'],';
			$dataCnt++;
		 }
		 if($ThailandC!=''){
			$json=$json.'["Thailand",'.$ThailandC.'],';
			$dataCnt++;
		 }
		 if($TimorLesteC!=''){
			$json=$json.'["TimorLeste",'.$TimorLesteC.'],';
			$dataCnt++;
		 }
		 if($TogoC!=''){
			$json=$json.'["Togo",'.$TogoC.'],';
			$dataCnt++;
		 }
		 if($TokelauC!=''){
			$json=$json.'["Tokelau",'.$TokelauC.'],';
			$dataCnt++;
		 }
		 if($TongaC!=''){
			$json=$json.'["Tonga",'.$TongaC.'],';
			$dataCnt++;
		 }
		 if($TrinidadTobagoC!=''){
			$json=$json.'["TrinidadTobago",'.$TrinidadTobagoC.'],';
			$dataCnt++;
		  }
		 if($TunisiaC!=''){
			$json=$json.'["Tunisia",'.$TunisiaC.'],';
			$dataCnt++;
		 }
		 if($TurkeyC!=''){
			$json=$json.'["Turkey",'.$TurkeyC.'],';
			$dataCnt++;
		 }
		 if($TurkmenistanC!=''){
			$json=$json.'["Turkmenistan",'.$TurkmenistanC.'],';
			$dataCnt++;
		 }
		 if($TurksCaicosIslandsC!=''){
			$json=$json.'["TurksCaicosIslands",'.$TurksCaicosIslandsC.'],';
			$dataCnt++;
		 }
		 if($UgandaC!=''){
			$json=$json.'["Uganda",'.$UgandaC.'],';
			$dataCnt++;
		 }
		 if($UkraineC!=''){
			$json=$json.'["Ukraine",'.$UkraineC.'],';
			$dataCnt++;
		 }
		 if($UnitedArabEmiratesC!=''){
			$json=$json.'["UnitedArabEmirates",'.$UnitedArabEmiratesC.'],';
			$dataCnt++;
		 }
		 if($UnitedStatesC!=''){
			$json=$json.'["UnitedStates",'.$UnitedStatesC.'],';
			$dataCnt++;
		 }
		 if($UruguayC!=''){
			$json=$json.'["Uruguay",'.$UruguayC.'],';
			$dataCnt++;
		 }
		 if($UzbekistanC!=''){
			$json=$json.'["Uzbekistan",'.$UzbekistanC.'],';
			$dataCnt++;
		 }
		 if($VanuatuC!=''){
			$json=$json.'["Vanuatu",'.$VanuatuC.'],';
			$dataCnt++;
		  }
		 if($VenezuelaC!=''){
			$json=$json.'["Venezuela",'.$VenezuelaC.'],';
			$dataCnt++;
		 }
		 if($VirginIslandsBritishC!=''){
			$json=$json.'["VirginIslandsBritish",'.$VirginIslandsBritishC.'],';
			$dataCnt++;
		 }
		 if($VirginIslandsUSC!=''){
			$json=$json.'["VirginIslandsUS",'.$VirginIslandsUSC.'],';
			$dataCnt++;
		 }
		 if($WallisFutunaC!=''){
			$json=$json.'["WallisFutuna",'.$WallisFutunaC.'],';
			$dataCnt++;
		 }
		 if($YemenC!=''){
			$json=$json.'["Yemen",'.$YemenC.'],';
			$dataCnt++;
		  }
		 if($ZambiaC!=''){
			$json=$json.'["Zambia",'.$ZambiaC.'],';
			$dataCnt++;
		 }
		 if($ZimbabweC!=''){
			$json=$json.'["Zimbabwe",'.$ZimbabweC.'],';
			$dataCnt++;
		 }
	}
		$json=rtrim($json,',');
	   $json=$json.']}]';
    }*/
?>
<html>
<body>
	<!--CONTENT SECTION START-->
		<div id="main-wrapper-sec">
			<section>
				<!--INNER MAIN TITLE SECTION START-->
					<h2 class="inner-main-title pr-title">login</h2>
				<!--INNER MAIN TITLE SECTION END-->
				
				<!--CONTENT MAIN SECTION START-->
				<div class="content-main-sec">
					<!--INNER CONTENT LEFT SECTION START-->
					<ul class="inner-left-menu-sec">
						<?php include('cleftmenu.phtml');?>
					</ul>
					<!--INNER CONTENT LEFT SECTION END-->
			  
					<!--INNER CONTENT RIGHT SECTION START-->
					<article class="inner-cont-right-sec">
						<h1 class="inner-cont-title">Dashboard</h1>
						<ul class="acc-sd-sec">
							  <li>
							  <div class="acc-no-sec"><strong>Name</strong> <?php if(isset($data['infoCustomers'][0]['infoCustomerAdditional']['linkMan'])){ echo $data['infoCustomers'][0]['infoCustomerAdditional']['linkMan']; } ?></div>
							  <div class="acc-bal-sec"><strong>Balance</strong> <?php if(isset($data['infoCustomers'][0]['money'])){ 
							  $money=explode(".",$data['infoCustomers'][0]['money']);
							  if(strlen($money[1])>2){ 
							  $a=substr($money[1], 0,2);
							  $z=$money[0].".".$a; 
							  echo $z;}else{
							  $z=$money[0].".0"; 
							  echo $z;
							  } }else{ 
							  echo '0';} ?></div>
							  <div class="acc-cp-sec"><strong>Current Packages</strong>
							  <?php 
								if(count($Suitename)!=''){
									for($i=0;$i<count($Suitename);$i++){ 
										$pakageName=explode("-",$Suitename[$i]);	
										echo $pakageName[1];echo '<br>';
									}
								}else{ 
								echo '0';} ?></div>
							  <div class="acc-pk-sec"><strong>Remaing Minutes </strong> <?php if(count($giftTime)!=''){ for($j=0;$j<count($giftTime);$j++){ echo $giftTime[$j];echo '<br>';}}else{ echo '0';} ?></div>
							  <div class="recharge"><a href="<?php echo $this->url('cpayments', array('action' => 'cpayments')); ?>" class="db-re-but">recharge now</a></div>
							  </li>
						</ul>
						<div class="clear"></div>
						
							<div><br>
								<center>
									<h1 style="color:blue">Coming soon</h1>
									<img height="250px"src="<?php echo $this->basePath(); ?>/images/call_detalis1.png">
								</center>
							</div>
						
						<!--DASHBOARD CONTENT MAIN SECTION START-->
				  
						<!--WEEKLY USAGE STATITICS SECTION START
						<aside class="wus-sec" style="padding-right:117px;">
							<?php //if($dataCnt>0){ ?>
							<h6 ><div id="container1" style="width:100%; height:400px;" ></div></h6>
							<?php //}else{ ?>
							<br /><h4>No Graph...</h4>
							<?php //} ?>
						</aside>-->
						
						<!--WEEKLY USAGE STATITICS SECTION END-->
				  
						<!--LATEST CALLS SECTION START
						<div style="margin:0px 0px 0px 0px;">
						<aside class="lc-sec" style="width:350px;margin:0px 0px 0px 0px;">
						 <h6 class="inner-sub-title"><img src="<?php// echo $this->basePath(); ?>/images/call-records.png" alt=""> Latest Calls</h6>
						  <table width="100%" cellpadding="0" cellspacing="0" border="0">
							  <?php //$j=1; if($SESSION['Cgraph']==1){ foreach($SESSION['Cgraph']['infoCdrs'] as $data){ if($j<=5){ ?>
							  <tr>
							  <td align="left" valign="middle"><?php //echo gmdate("H:i:s", $data['feeTime']); ?>sec</td>
							  <td align="middle" valign="middle"><?php //echo $data['calleeE164']; ?></td>
							  <td align="right" valign="middle"><?php// $original_timestamp=$data['start'];$timestamp = (int)substr($original_timestamp,0,-3);echo date('d M H:i a',$timestamp); ?></td>
							  </tr>
							  <?php //} $j++; } }else{ ?>
							  <tr>
							  <td align="middle" valign="middle">No Latest Calls..</td>
							  </tr>
							  <?php //} ?>
							</table>
						</aside>
						</div>-->
						<!--LATEST CALLS SECTION END-->
				  <!--DASHBOARD CONTENT MAIN SECTION END-->
					</article>
					<!--INNER CONTENT RIGHT SECTION END-->
				</div>
				<!--CONTENT MAIN SECTION END-->
				<div class="clear"></div>
			  
				<!--CLIENTS AREA SECTION START-->
				  <aside class="content-main-sec ot-lg-sec"> <img src="<?php echo $this->basePath(); ?>/images/truste.jpg" alt=""> <img src="<?php echo $this->basePath(); ?>/images/secured.jpg" alt=""> <img src="<?php echo $this->basePath(); ?>/images/mcafeev.jpg" alt="">
					<h3 class="otg-title">Trusted. Safe. Reliable.</h3>
				  </aside>
				<!--CLIENTS AREA SECTION END-->
				<div class="clear"></div>
			</section>
		</div>
	<!--CONTENT SECTION END--> 
	</body>

</html>
<script> 
/* <?php if($dataCnt>0){ ?>
 $(function(){
    $('#container1').highcharts({
					chart: {
						plotBackgroundColor: null,
						plotBorderWidth: null,
						plotShadow:false,
						width: 250,
						height: 250
					},
						title: {
							text: 'User chart'
						},
						tooltip:{
							pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
						},
						plotOptions:{
							pie: {
								allowPointSelect: true,
								cursor: 'pointer',
								dataLabels:{
									enabled: true,
									color: '#000000',
									connectorColor: '#000000',
									format: '<b>{point.name}</b>: {point.percentage:.1f} %'
								}
							}
						},
					   series: <?php  echo $json;?>
			});
    });
<?php } ?>*/
</script>
